<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
	<head>
		<script type="text/javascript" src="js/jquery-1.2.3.js"></script>
			<link rel="stylesheet" href="css/ColorPicker.css" type="text/css"></link>
			<script type="text/javascript" src="js/ColorPicker.js"></script>
			<script type="text/javascript" src="js/jquery.MultiFile.js"></script>
			<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>

			<script type="text/javascript">
				jQuery(function($) {
					$("#vtrColorPicker").attachColorPicker();
					$("#vtrColorPicker2").attachColorPicker();
				});
			</script>

			<script type="text/javascript" language="JavaScript">


				tinyMCE.init({
					// General options
					mode : "exact",
                   	elements : "items.description",
					theme : "advanced"
				});


				function toogleEditorMode(sEditorID) {
					var tinyMCEmode = eval(document.getElementById('tinyMCEmode').value);
				    try {
				        if(tinyMCEmode) {
				            tinyMCE.removeMCEControl(tinyMCE.getEditorId(sEditorID));
				            document.getElementById('tinyMCEmode').value = 'false';
				            document.getElementById('editorMsg').innerHTML = 'Switch to visual html editor';
				        } else {
				        	document.getElementById('tinyMCEmode').value = 'true';
				            tinyMCE.addMCEControl(document.getElementById('items.description'), sEditorID);
				            document.getElementById('editorMsg').innerHTML = 'Switch to normal text editor';
				        }
				    } catch(e) {
				        //error handling
				    }
				}
		</script>
	</head>
	<body>
		<input type="hidden" id="tinyMCEmode" name="tinyMCEmode" value="true">
	<s:form method="post" name="Add_Item_Form"
		action="previewAdvertisement.htm"
		enctype="multipart/form-data">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>
					<div class="blue-text16" style="margin: 0px 0px 0px 0px">
						Create Advertisement
					</div>
					<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>

					<div style="margin: 0px 0px 12px 0px">
<table border="0" cellpadding="0" cellspacing="0" width="100%">


	<tbody>
		<tr>
			<td>
				<s:actionerror cssClass="error-text" />
				<s:fielderror cssClass="error-text" />
			</td>
		</tr>
		<tr>
			<td>
				<!--Error-->
				<table cellpadding="0" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td width="15%" align="right" valign="top" class="common-bold-text">
								<b>Category:</b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" class="error-text">
												<div id="parentDiv">No category selected</div>
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="250">
												<table border="0" cellspacing="0" cellpadding="0">
																<tr>
																	<td class="btn-grey-left1"></td>
																	<td class="btn-grey-middle1 ">
																		<input type="button" value="Select category" onclick="PPPCC=window.open('<%= basePath + "ajax/showDynamicTreeAction.htm" %>','CurrencyConverter','width=600,height=400,scrollbars=yes,resizable=false');PPPCC.focus()" class="submit-btn-common">
																	</td>
																	<td class="btn-grey-right1"></td>
																</tr>
															</table>
											</td>

											<td valign="top" width="20">
												<font color="green" size="2"> *</font>
											</td>
											<td valign="top" class="common-text">
											<s:if test="#attr.categoryFees[0].advertisement == 2">
												<s:text name="addSellAuctionItem.category.para2">
													<s:param name="value" value="#attr.categoryFees[1].advertisement" />
													<s:param name="value" value="#attr.categoryFees[0].advertisement" />
												</s:text>
											</s:if>
											<s:elseif test="#attr.categoryFees[0].advertisement == 3">
												<s:text name="addSellAuctionItem.category.para3">
													<s:param name="value" value="#attr.categoryFees[1].advertisement" />
													<s:param name="value" value="#attr.categoryFees[2].advertisement" />
													<s:param name="value" value="#attr.categoryFees[0].advertisement" />
												</s:text>
											</s:elseif>
											<s:else>
												<s:text name="addSellAuctionItem.category.para">
													<s:param name="value" value="#attr.categoryFees[1].advertisement" />
													<s:param name="value" value="#attr.categoryFees[2].advertisement" />
													<s:param name="value" value="#attr.categoryFees[3].advertisement" />
													<s:param name="value" value="#attr.categoryFees[0].advertisement" />
												</s:text>
											</s:else>
										  </td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>

						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.title" /></b>
							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="250">
												<s:textfield cssClass="textfield" name="items.title" theme="simple" />
											</td>
											<td valign="top" width="20">
												<font color="green" size="2"> *</font>
											</td>
											<td valign="top" class="common-text">
												<s:text name="shop.char">
													<s:param name="value" value="#attr.listingOptions.maximumTitleSizeInBytes"></s:param>
												</s:text>
											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.subtitle" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="274">
												<s:textfield cssClass="textfield" name="items.subTitle" theme="simple" />
											</td>

											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[5].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[5].advertisement" /></font> </s:if><s:text name="shop.para1"><s:param name="value" value="#attr.listingOptions.shortTitleSize"></s:param></s:text>										</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.bold" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">

									<tbody>
										<tr>
											<td valign="top" width="274">
												<s:checkbox name="items.bold" theme="simple" />
											</td>
											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[6].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[6].advertisement" /></font></s:if> <s:text name="createAdvertise.para3" />										</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>

							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.titlecolor" /></b>							</td>
							<td valign="top">
								<div id="colorPickerDiv"
									style="position: absolute; visibility: hidden;">
								</div>

								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="274">
												<table border="0" cellpadding="0" cellspacing="0"
													width="250">
													<tbody>
														<tr>
															<td>
																<s:textfield readonly="true" cssClass="textfield" id="vtrColorPicker" name="items.colored" size="7" value="%{items.colored}" />
															</td>
														</tr>
														<tr>
															<td>

															</td>
														</tr>

													</tbody>
												</table>
											</td>
											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[7].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[7].advertisement" /></font></s:if> <s:text name="shop.para3" />											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="shop.bgcolor" /></b>							</td>

							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td>
												<select name="items.bgColor" size="1" class="textfield">
												<option value=""></option>
												<s:set var="tmpbgColors" value="#attr.listingOptions.posibleItemBacgroundColors" />
												<% String[] bgColors = pageContext.getAttribute("tmpbgColors").toString().split("\\|"); %>
											    <% for(String bgColor : bgColors) { %>
											      	<option value="<%= bgColor %>" style="background-color: <%= bgColor %>;"><%= bgColor %></option>
											    <% } %>
												</select>
											</td>

											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[8].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[8].advertisement" /></font></s:if> <s:text name="shop.para4" />											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.description" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">

									<tbody>
										<tr>
											<td valign="top" width="250">
												<a href="#" onclick="toogleEditorMode('items.description')" class="common-link"><div id="editorMsg"><s:text name="createAdvertise.para10" /></div></a>
										  </td>
											<td valign="top" width="20">
												<font color="green" size="2"> *</font>
											</td>
											<td valign="top" class="common-text">
												<s:text name="createAdvertise.para11">
													<s:param name="value" value="#attr.listingOptions.maximumDescriptionSizeInBytes" />
												</s:text>
											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>

						<tr>
							<td class="common-bold-text" align="right" valign="top">							</td>
							<td valign="top">
								<table cellpadding="4" cellspacing="0" width="100%">

									<!--EditData-->
									<!--CopyData-->
									<tbody>
										<tr>
											<td valign="top">
												<s:textarea cssClass="textfield" id="items.description" name="items.description" rows="12"
																						cols="70" theme="simple" cssStyle="width: 100%" />
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>

						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.companyprofile" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="274">
												<s:checkbox name="items.companyProfile" theme="simple" />
											</td>
											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[22].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[22].advertisement" /></font></s:if> <s:text name="shop.companyprofile" />											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<s:text name="addSellAuctionItem.menu.homepage" />
							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="278">
												<s:textfield cssClass="textfield" name="items.homePage" theme="simple" />
											</td>
											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[16].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[16].advertisement" /></font></s:if> <s:text name="addSellAuctionItem.menu.homepage.para" />
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>

							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.itemlanguage" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="250">
												<s:select theme="simple" size="1" list="#attr.languages" listKey="languageCode" listValue="%{getText('lang_' + languageCode)}" name="items.itemLanguage.languageCode" cssClass="textfield"></s:select>
											</td>

											<td valign="top" width="20">
												<font color="green" size="2"> *</font>
											</td>
											<td valign="top" class="common-text">
												<s:text name="createAdvertise.para14" />											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.itemlocation" /></b>							</td>

							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="274">
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="overview.para6" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>

											<td valign="top" width="250">
												<s:select theme="simple" cssClass="textfield"
													headerValue="Select Region" headerKey="0"
													name="items.locationCategoriesByRegion.categoryId"
													value="%{region.categoryId}" id="region"
													list="regionList" listKey="categoryId" listValue="categoryName"></s:select>
												<ajax:event ajaxRef="CommonForm/showCountryChange" />
											</td>
											<!-- <td valign="top" width="20"><font color="green" SIZE="2"> *</font></td> -->

											<td valign="top"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="overview.para7" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>

											<td valign="top" width="250">
												<select class="textfield"
													name="items.locationCategoriesByCountry.categoryId" id="country"></select>
												<ajax:event ajaxRef="CommonForm/showStateChange" />
											</td>
											<!-- <td valign="top" width="20"><font color="green" SIZE="2"> *</font></td> -->
											<td valign="top"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="overview.para7" /></b>							</td>

							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="250">
												<select name="items.locationCategoriesByState.categoryId" class="textfield" />
											</td>
											<!-- <td valign="top" width="20"><font color="green" SIZE="2"> *</font></td> -->
											<td valign="top"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>

							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="shop.zipcode" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="250">
												<table border="0" cellpadding="0" cellspacing="0"
													width="250">
													<tbody>
														<tr>
															<td width="60">
																<s:textfield cssClass="textfield" name="items.shipZip" size="20"
																										theme="simple" />
															</td>
															<td width="4"></td>
															<td width="186" nowrap="nowrap">
																<s:textfield cssClass="textfield" name="items.city" size="20"
																										theme="simple" />
															</td>
														</tr>
													</tbody>
												</table>
											</td>

											<!-- <td valign="top" width="20"><font color="green" SIZE="2"> *</font></td> -->
											<td valign="top"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<a name="File"></a><b><s:text name="shop.uploadfile" /></b>							</td>
							<td valign="top">
								<table cellpadding="4" cellspacing="0" width="100%">

									<tbody>
										<tr>
											<td valign="top" class="common-text">
												<b class="common-bold-text"><s:text name="createAdvertise.notes" /></b>
												<ul>
													<li class="common-text">
														<s:text name="createAdvertise.para16" />													</li>
													<li class="common-text">
														<s:text name="createAdvertise.para17" />
														<b><s:property value="#attr.listingOptions.numberOfFilesAllowedToUpload" /></b> <s:text name="shop.file" />													</li>
													<li>
														<s:text name="shop.fileupload" />
														<b><s:property value="#attr.listingOptions.maximumUploadFileSize" /></b> <s:text name="shop.kbyte" />
													</li>
													<li>
														<s:text name="shop.combindfile" />
														<b><s:property value="#attr.listingOptions.maximumUploadTotalFilesSize" /></b> <s:text name="shop.kbyte" />
													</li>
													<li>
														<s:text name="shop.filetype" />
														<b><s:property value="#attr.listingOptions.filesExtensionsAllowed" /></b>.
													</li>
												</ul>

												<b><s:text name="createAdvertise.uploadfiles" /></b>
												<ol>
													<li>
														<s:text name="createAdvertise.para26" />
														<b><s:text name="createAdvertise.Browse" /></b><s:text name="createAdvertise.para27" />
													</li>
													<li>
														<s:text name="createAdvertise.para26" />
														<b><s:text name="createAdvertise.para28" /></b><s:text name="createAdvertise.para29" />
													</li>
													<li>
														<s:text name="createAdvertise.para30" />
													</li>
													<li>
														<s:text name="createAdvertise.para31" />
													</li>
												</ol>

										  </td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>

						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="createAdvertise.file" /></b>							</td>
							<td valign="top">
								<table cellpadding="4" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top">
												<table cellpadding="0" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td>
																<input type="file" name="upload" class="multi" maxlength="5"/>
																<s:submit action="uploadAdvertisementFile" value="Upload file" />
															</td>
														</tr>
													</tbody>
												</table>

											</td>
											<td valign="top"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>

											<td valign="top" class="common-text">
												<b><font color="red"><s:text name="shop.manage" /></font>												</b>
												<br>
												<table border="0" cellpadding="2" cellspacing="1"
													width="100%">
													<tbody>
														<tr>
															<!--<td width="40%"  align="center">File</td>-->
															<td align="center" class="grid-header-bg grid-header-text">
																<s:text name="addSellAuctionItem.menu.manageuploadfile.size" />
															</td>
															<td align="center" class="grid-header-bg grid-header-text">
																<s:text name="addSellAuctionItem.menu.manageuploadfile.auction" />
															</td>
															<td align="center" class="grid-header-bg grid-header-text">
																<s:text name="addSellAuctionItem.menu.manageuploadfile.thumbnail" />
															</td>
															<td align="center" class="grid-header-bg grid-header-text">
																<s:text name="addSellAuctionItem.menu.manageuploadfile.gallerie" />
															</td>
															<td align="center" class="grid-header-bg grid-header-text">
																<s:text name="addSellAuctionItem.menu.manageuploadfile.preview" />
															</td>
														</tr>
													<s:set var="total" value="0" />
													<s:iterator value="uploadedFiles" status="raw">
														<s:set var="total" value="%{#total + size}" />
														<tr>
															<td align="center" class="grid-bg grid-header-text">
																<s:property value="size" />
															</td>
															<td align="center" class="grid-bg grid-header-text">
																<a href="uploadFile.htm?deleteAction=<s:property value="#raw.index" />">Delete</a>
															</td>
															<td align="center" class="grid-bg grid-header-text">
																<input type="radio" name="thumbnailId" value="<s:property value="#raw.index" />" />
															</td>
															<td align="center" class="grid-bg grid-header-text">
																<input type="radio" name="gallaryId" value="<s:property value="#raw.index" />" />
															</td>
															<td align="center" class="grid-bg grid-header-text">
																<s:if test="contentType == 'application/msword'">
																	<img src="images/doc.jpeg" height="20" width="20" />
																</s:if>
																<s:elseif test="contentType == 'text/plain'">
																	<img src="images/txt.jpeg" height="20" width="20" />
																</s:elseif>
																<s:elseif test="contentType == 'application/pdf'">
																	<img src="images/pdf.jpeg" height="20" width="20" />
																</s:elseif>
																<s:elseif test="contentType == 'audio/x-wav'">
																	<img src="images/wav.jpeg" height="20" width="20" />
																</s:elseif>
																<s:elseif test="contentType == 'audio/midi'">
																	<img src="images/mid.jpeg" height="20" width="20" />
																</s:elseif>
																<s:elseif test="contentType == 'video/quicktime'">
																	<img src="images/mov.jpeg" height="20" width="20" />
																</s:elseif>
																<s:elseif test="contentType == 'video/msvideo'">
																	<img src="images/avi.jpeg" height="20" width="20" />
																</s:elseif>
																<s:else>
																	<img src="servlet/ImageServlet?dto=path&id=1&name=<s:property value="name" />" height="20" width="20" />
																</s:else>
															</td>
														</tr>
													</s:iterator>
													</tbody>
											  </table>
												<s:if test="uploadedFiles != null">
												<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
													<s:param name="value" value="uploadedFiles.size" />
													<s:param name="value" value="%{#total / 1024}" />
													<s:param name="value" value="%{fileFees}" />
												</s:text>
												</s:if>
												<s:else>
													<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
														<s:param name="value" value="0" />
														<s:param name="value" value="0" />
														<s:param name="value" value="0" />
													</s:text>
												</s:else>
										  </td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<s:if test="uploadedFiles != null && uploadedFiles.size > 0">
							<tr>
			                  	<td class="form_lable" valign="top" align="right"> </td>
			                  	<td valign="top" class="common-text"><table cellpadding="4" cellspacing="0">
			                    	<tbody><tr>
				                      <td valign="top" width="250"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="4" type="radio">Static</td><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="2" type="radio">Slide show</td></tr></tbody></table></td>
				                      <td valign="top" width="20"> </td>
				                      <td valign="top"><s:if test="#attr.optionsFees[15].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[15].advertisement" /></font></s:if> Slide show</td>
			                    	</tr>
			                    	<tr>
			                      		<td valign="top">How would you like to show your files</td>
			                      		<td colspan="2" valign="top"> </td>
			                    	</tr></tbody>
			                    </table></td>
			                </tr>
			                <tr>
			                  	<td class="common-text" valign="top" align="right"><b>Gallery:</b></td>
			                  	<td valign="top"><table cellpadding="4" cellspacing="0">
			                    	<tbody><tr><td valign="top" width="278"><input class="cb" name="items.gallery" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[2].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[2].advertisement" /></font></s:if> Features your offer within the Gallery. If this option was set before, it can not be canceled.</td></tr>
			                  		</tbody></table></td>
			                </tr>
			                <tr>
			                  	<td class="common-text" valign="top" align="right"><b>Gallery featured:</b></td>
			                  	<td valign="top"><table cellpadding="4" cellspacing="0">
			                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryFeatured" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[3].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[3].advertisement" /></font></s:if> Your listing will appear in the special “Gallery Featured” page linked to the general Picture Gallery listing</td></tr>
			                  	</tbody></table></td>
			                </tr>
			                <tr>
			                  	<td class="common-text" valign="top" align="right"><b><s:text name="Gallery_plus_label" /></b></td>
			                  	<td valign="top"><table cellpadding="4" cellspacing="0">
			                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryPlus" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[4].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[4].advertisement" /></font></s:if> <s:text name="gallery_plus_desc" /></td></tr>
			                  	</tbody></table></td>
			                </tr>
						</s:if>
						<!--Files_Features-->
						<tr>

																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.duration" />
																</td>
																<td valign="top">
																	<table cellpadding="2" cellspacing="0" width="100%">
																		<tbody>
																			<tr>
																				<td valign="top" width="250">
																					<select size="1" name="items.duration" class="textfield">
																						<option value="1">
																							1 Month
																						</option>
																						<option value="2">
																							2 Months
																						</option>
																						<option value="3">
																							3 Months
																						</option>
																						<option value="4">
																							4 Months
																						</option>
																						<option value="5">
																							5 Months
																						</option>
																						<option value="6">
																							6 Months
																						</option>
																						<option value="7">
																							7 Months
																						</option>
																						<option value="8">
																							8 Months
																						</option>
																						<option value="9">
																							9 Months
																						</option>
																						<option value="10">
																							10 Months
																						</option>
																						<option value="11">
																							11 Months
																						</option>
																						<option value="12">
																							12 Months
																						</option>
																				  </select>
																				</td>

																				<td valign="top" width="20">
																					<font color="green" size="2"> *</font>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.duration.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
															<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.autoresubmit" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:set var="times" value="#attr.listingOptions.maximumAutoResubmitNumber" />
																					<select size="1" name="items.resubmit" class="textfield">
																					<% for(int index = 0; index <= Integer.parseInt(pageContext.getAttribute("times").toString()); index++) { %>
																						<option value="<%= index %>">
																							<%= index %> <%= (index > 1) ? "Times" : "Time" %>
																						</option>
																					<% } %>
																				  	</select>
																				</td>
																				<td valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.autoresubmit.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
						<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.homepagefeatured" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr>
																				<td valign="top" width="278">
																					<s:checkbox name="items.homePageFeatured"
																						theme="simple" />
																				</td>
																				<td valign="top" class="common-text">
																					<s:if test="#attr.optionsFees[0].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[0].advertisement" /></font></s:if> <s:text name="addSellAuctionItem.menu.homepagefeatured.para" />
																				</td>
																			</tr>
																		</tbody>
																  </table>
																</td>
															</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="shop.categoryfeature" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td valign="top" width="274">
												<s:checkbox name="items.categoryFeatured" theme="simple" />
											</td>

											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[1].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[1].advertisement" /></font></s:if> <s:text name="shop.urlisting" />										</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
							<td class="common-bold-text" align="right" valign="top">
								<b><s:text name="shop.framed" /></b>							</td>
							<td valign="top">
								<table cellpadding="2" cellspacing="0" width="100%">

									<tbody>
										<tr>
											<td valign="top" width="274">
												<s:checkbox name="items.framed" theme="simple" />
											</td>
											<td valign="top" class="common-text">
												<s:if test="#attr.optionsFees[21].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[21].advertisement" /></font></s:if> <s:text name="shop.urlisting1" />											</td>
										</tr>
									</tbody>
							  </table>
							</td>
						</tr>
						<tr>
																<td class="common-bold-text" align="right" valign="top">
																	<s:text name="addSellAuctionItem.menu.crosspromotion" />
																</td>
																<td valign="top">
																	<table cellpadding="4" cellspacing="0">
																		<tbody>
																			<tr class="common-bold-text">
																				<td valign="top" width="30%">
																					<input class="cb" name="items.crossPromotion" value=""
																						checked="checked" type="radio">
																					NONE																			  </td>
																		  	</tr>
																			<tr>
																				<td width="278" valign="top" class="common-bold-text">
																					<input class="cb" name="items.crossPromotion" value="3"
																						type="radio">
																					3 Items
																					<s:if test="#attr.optionsFees[17].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[17].advertisement" /></font></s:if>
																			  	</td>
																				<td rowspan="3" valign="top" class="common-text">
																					<s:text name="addSellAuctionItem.menu.crosspromotion.para" />
																				</td>
																			</tr>
																			<tr class="common-bold-text">
																				<td valign="top" width="278">
																					<input class="cb" name="items.crossPromotion" value="6"
																						type="radio">
																					6 Items
																					<s:if test="#attr.optionsFees[18].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[18].advertisement" /></font></s:if>
																				</td>
																		  	</tr>
																			<tr class="common-bold-text">
																				<td valign="top" width="278">
																					<input class="cb" name="items.crossPromotion" value="9"
																						type="radio">
																					9 Items
																					<s:if test="#attr.optionsFees[19].advertisement != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[19].advertisement" /></font></s:if>
																				</td>
																		  </tr>

																		</tbody>
																  </table>
																</td>
															</tr>
					</tbody>
			  </table>
				<table cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td valign="top" class="common-text" colspan="2">
								<p align="justify">
									<b><s:text name="shop.disclaimer" /></b>
									<br>
									<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer1" />
									<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer2" />
									<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer3" />
									<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer4" />
								</p>

						  </td>
						</tr>
						<tr>
							<td align="right" class="common-text">
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
									  <td class="btn-grey-middle1 ">
							  <input type="submit" name="Submit" value="Submit" class="submit-btn-common" />
									</td>
									  <td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
									</tr>
								  </table>
						  </td>
						  <td align="left" class="common-text">
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
									  <td class="btn-grey-middle1 ">
							  <input value="Reset" type="reset" class="submit-btn-common" />
									</td>
									  <td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
									</tr>
								  </table>
						  </td>
						</tr>
					</tbody>
			  </table>
			</td>
		</tr>
	</tbody>

</table>
	</div>
	</td>
	</tr>
	</table>
		<s:hidden name="items.startBid" value="0" />
		<s:hidden name="type" value="5" />
</s:form>

	</body>
</html>